﻿@inject IUserService _userService

<CnGalWebSite.Shared.MasaComponent.Shared.Cards.TitleTip Title="401 Unauthorized" />

<NotFoundCard>
    @if (NoPermissions)
    {
        <h1 class="text-center title-large">权限不足</h1>
        <div class="text-center">抱歉哦，查看不了这个页面，不过你可以 <a @onclick="_userService.Login">登入其他账号</a> 试一试</div>
    }
    else
    {
        <h1 class="text-center title-large">仅登入可见</h1>
        <div class="text-center">哎呀，目前还不能访问此部分哦，不过你可以 <a @onclick="_userService.Login">登入</a> 试一试</div>
    }
</NotFoundCard>

@code {
    [Parameter]
    public bool NoPermissions { get; set; }
}
